import { createApp } from 'vue'
import { createPinia } from 'pinia'
import piniaPluginPersistedstate from 'pinia-plugin-persistedstate'

import App from './App.vue'
import router from './router'

import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
// axios
import '@/plugins/axios';

// element plus icons
import elementIcons from './plugins/element-plus-icon';

// pinia持久化
const pinia = createPinia();
pinia.use(piniaPluginPersistedstate);

const app = createApp(App)

app.use(pinia)
app.use(router)
app.use(elementIcons)
app.use(ElementPlus)

app.mount('#app')
